package com.example.administrator.model;

import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2016/11/23 0023.
 */

public class Question
{
    private int mTextResId;//文本编号

    private boolean mIsAnwerTrue ;//答案是否正确

    private int mCurretIndex = 0;

    public int getCurretIndex() {
        return mCurretIndex;
    }

    public void setCurretIndex(int curretIndex) {
        mCurretIndex = curretIndex;
    }

    private static Question sThis;

    public Question(int mTextResId, boolean mIsAnwerTrue )
    {
        this.mTextResId = mTextResId;
        this.mIsAnwerTrue = mIsAnwerTrue;
    }
    public static Question getInitiation(int mTextResId, boolean mIsAnwerTrue)
    {
        return  Question.sThis = (Question.sThis == null) ? new Question(mTextResId, mIsAnwerTrue) : Question.sThis;
    }

    public List<Map<?,?>> AddQuestion(List<Map<? , ?>> listData)
    {
       return listData;

    }


    public int getTextResId()
    {
        return mTextResId;
    }

    public void setTextResId(int textResId)
    {
        mTextResId = textResId;
    }

    public boolean isAnwerTrue()
    {
        return mIsAnwerTrue;
    }

    public void setAnwerTrue(boolean anwerTrue)
    {
        mIsAnwerTrue = anwerTrue;
    }
}
